package com.homedo.odin.solution.model.request.mng.useractionlog;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import lombok.Data;

@ApiModel(description = "用户行为日志列表")
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class MngUserActionLogRequestBean {


    @ApiModelProperty(value = "业务类型")
    @NotNull(message = "业务类型不能为空")
    private String businessType;

    @ApiModelProperty(value = "业务标识")
    @NotNull(message = "业务标识不能为空")
    @Min(value = 0, message = "业务标识有误")
    private Long businessId;

    @ApiModelProperty(value = "用户标识")
    @Min(value = 0, message = "用户标识有误")
    private Integer userId;

    @ApiModelProperty(value = "选项名")
    private String text;

    @ApiModelProperty(value = " IP 地址")
    private String ip;

    @ApiModelProperty(value = "Referer 地址")
    private String referer;
}
